Table of Contents

Use the following to generate a table of contents... ```{toc} ```

Output:

Bookmarks

You can automatically link back to any piece of text by using the bm inline tag: `{bm} SOME TEXT HERE`. For example, I can make all instances of the word metagenomics to reference back to this sentence.

Notice how in the markdown I write out `{bm} metagenomics` instead of the actual word. The text renders are plain text but anywhere else where the word metagenomics pops up, it automatically links to that bookmark. If you want to avoid having a specific instance link back, use `{bm-ri} metagenomics` instead of writing it out as plain text.

Notes

Generate notes by using the note block tag:

```{note}
This is a custom note.
```

Output:

NOTE: This is a custom note.

TODO: Add CSS styling for this.

Page Title

Set the title of the output document using the title inline/block tag:

```{title}
Markdown Example!
```

Output: (see the title of this HTML page)

If you're using a block tag, make sure you put the title on a NEW line (not on the same line that declares the tag).

MathJax

Add a MathJax TeX expression using mj inline/block tag:

```{mj}
\frac{a}{b}
```

Inline output: $\frac{a}{b}$

Block output:

$$\frac{a}{b} $$

KaTeX

Add a KaTeX TeX expression using kt inline/block tag:

```{kt}
\frac{a}{b}
```

Inline output: ab\frac{a}{b}

Block output:

ab\frac{a}{b}

GraphViz Diagrams

Generate Graphviz dot diagrams by using dot block tag:

```{dot}
digraph {
  a -> b;
  b -> c;
  b -> d;
}
```

Output:

Graphviz Dot Diagram

PlantUML Diagrams

Add a PlantUML diagram using the plantuml block tag:

```{plantuml}
@startuml
class Student {
  Name
}
Student "0..*" - "1..*" Course
(Student, Course) .. Enrollment

class Enrollment {
  drop()
  cancel()
}
@enduml
```

Block output:

PlantUML Diagram

CSV

Add a table using the CSV block tag:

```{csv}
!![true]
Code,Country
AFG,Afghanistan
ALB,Albania
ALG,Algeria
ASA,American Samoa
AND,Andorra
ANG,Angola
AIA,Anguilla
ATG,Antigua and Barbuda
```

Block output:

CodeCountry
AFGAfghanistan
ALBAlbania
ALGAlgeria
ASAAmerican Samoa
ANDAndorra
ANGAngola
AIAAnguilla
ATGAntigua and Barbuda

Standard Markdown

Normal CommonMark features are supported out of the box.

Block Code:

public static void main(String[] args) {
    ...;
}

Inline Code: code

Bold: bold text

Italic: italicized text

Blockquote:

blockquote blockquote blockquote

Ordered List:

  1. First item
  2. Second item
  3. Third item

Unordered List:

Horizontal Rule:


Link: Link to Google

Image: Image Alt Text

heading2

heading3

heading4

heading5

heading 6

heading 7